﻿namespace NumeralSystems
{
    using System;
    using System.Collections.Generic;

    class ConvertRandomDecimalToBinary
    {
        // 1.1.8.04. Write a program that converts a decimal number to binary one.

        public static string ConvertDecimalToBinary(int decimalNum)
        {
            List<byte> binaryCompilation = new List<byte>();
            while (decimalNum != 0)
            {
                binaryCompilation.Add((byte)(decimalNum % 2));
                decimalNum /= 2;
            }

            binaryCompilation.Reverse();

            return String.Join("", binaryCompilation);
        }

        static void Main()
        {
            int num = int.Parse(Console.ReadLine());
            Console.WriteLine(ConvertDecimalToBinary(num));
        }
    }
}